package org.hhh.pet.service;


import org.hhh.basic.service.IBaseService;
import org.hhh.basic.util.PageList;
import org.hhh.pet.domain.Pet;
import org.hhh.pet.domain.SearchMasterMsg;
import org.hhh.pet.query.SearchMasterMsgQuery;
import org.hhh.user.domain.Logininfo;

public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {
    /**
     * 发布寻主信息
     * @param msg
     * @param logininfo
     */
    void publish(SearchMasterMsg msg, Logininfo logininfo);

    PageList<SearchMasterMsg> user(SearchMasterMsgQuery query, Logininfo logininfo);

    PageList<SearchMasterMsg> pending(SearchMasterMsgQuery query, Logininfo logininfo);

    PageList<SearchMasterMsg> processed(SearchMasterMsgQuery query, Logininfo logininfo);

    /**
     * 处理寻主信息
     * @param pet
     * @param currentLogininfo
     */
    void handle(Pet pet, Logininfo currentLogininfo);
}
